﻿#相机通信模块
project(libcamera)

find_package(OpenCV REQUIRED)
find_package(Qt5Core REQUIRED)
#通用头文件包含路径
set(CVDIR "C:/Program Files/opencv/")
include_directories(
	${QTDIR}/include/Qt5Network		#QT网络文件
	${THIRD_INC}
	${OpenCV_INCLUDE_DIRS}
	)

#find_package(Qt5Network REQUIRED) # Qt 组件（默认支持核心） 

aux_source_directory(. src)
# 将源代码添加到此项目的可执行文件。
#add_library(${PROJECT_NAME} STATIC ${src})
add_library(${PROJECT_NAME} SHARED ${src})
target_compile_definitions(${PROJECT_NAME} PRIVATE CMAERA_LIB)

#target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Network liblog ${SRCLIB}/MechEyeApi.lib
target_link_libraries(${PROJECT_NAME}  Qt5::Core liblog ${SRCLIB}/MechEyeApi.lib
				${OpenCV_LIBS})
